package com.dog.service;

import com.dog.dao.CustomerDAO;
import com.dog.model.ContactPerson;
import com.dog.model.Customer;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author <a href="mailto:sand_by@mail.ru">Andrew Sakhno</a> 26.04.2010
 */
@Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public interface ICustomerService extends IBaseService<CustomerDAO, Customer> {

    Customer get2(final Long id);

    Customer getByIdWithContactPersons(Long customerId);

    void addContactPerson(Long customerId, ContactPerson contactPerson);

    void deleteContactPerson(Long customerId, Long contractPersonId);

}
